home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
patch
/
pgs32tu3.lha
/
scripts.lha
/
WarpText.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1996-11-20
|
2KB
|
64 lines
/* $VER: Warp Text 1.0 (11.20.96)
Copyright 1996 SoftLogik Publishing Corporation
May not be distributed without SoftLogik Publishing Corporation's express written permission */
ADDRESS 'PAGESTREAM'
options results
/* CHECK FOR OBJECTS */
getselectedobjects
if result<2 then call OOPS()
/* OPTIONS DIALOG BOX */
allocarexxrequester '"Warp Text in Shape"' 360 57
hDialog=result
addarexxgadget hDialog checkbox 12 12 106 label '"Bend Lines (slower, but better quality)"'
hCheckBend
addarexxgadget hDialog exit 12 38 70 label "OK"
hOK=result
addarexxgadget hDialog exit 278 38 70 label "Cancel"
hCancel=result
doarexxrequester hDialog
action=result
getarexxgadget hDialog hCheckBend checked
iBend=result
freearexxrequester hDialog
if action=hCancel then EXIT
/* BUSY DIALOG */
'lockinterface true'
openbusyrequester message "'Warping text...'" thermometer disabled abort disabled
hBusy=result
'refresh wait'
/* WARP TEXT */
'maketextfxpath'
if rc~=0 then do
'refresh continue'
'lockinterface false'
call OOPS()
end
if iBend=0 then 'edittextobj textfx warp bendlines false distortx false'
if iBend=1 then 'edittextobj textfx warp bendlines true distortx false'
'closebusyrequester 'hBusy
'refresh continue'
'refreshwindow'
'lockinterface false'
EXIT
OOPS:
/* TextFX not installed or wrong objects */
allocarexxrequester '"Cannot Warp Text"' 418 67
hAlert=result
addarexxgadget hAlert TEXT 8 12 400 border none string '"You must have TextFX 2 installed and select a text"'
addarexxgadget hAlert TEXT 8 24 400 border none string '"block and a shape or path to use this script."'
addarexxgadget hAlert EXIT 336 48 70 label "Exit"
doarexxrequester hAlert
freearexxrequester hAlert
EXIT
RETURN